package ooday01test;

public class Students {
    public String name;
    public int age;
    public String className;
    public String stuId;

    //
    public Students(){

    }
    public Students(String name,int age,String className,String stuId){
        this.name=name;
        this.age=age;
        this.className=className;
        this.stuId=stuId;
    }
    public void study(){
        System.out.println(name+"在学习");
    }
    public void sayHi(){
        System.out.println("大家好，我是"+name+"，今年"+age+"岁了，我的班级是"+className+"，学号是"+stuId);
    }
    public void playWith(String antherName){
        System.out.println(name+"正在和"+antherName+"一起玩耍");
    }
}
